﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{
    [Serializable]
    public class PIMTestItemInfo
    {
        private string productSN;
        private DateTime testTime;
        private string topoAlias;
        private string interceptOrder;
        private decimal inputPower1;
        private decimal inputPower2;
        private decimal inputF1;
        private decimal inputF2;
        private decimal outputF;
        private decimal testValue;
        private decimal highSpec;
        private string isPass;

        public PIMTestItemInfo() { }

        public PIMTestItemInfo(string productSN, DateTime testTime, string topoAlias, string interceptOrder, decimal inputPower1, decimal inputPower2, 
            decimal inputF1, decimal inputF2,  decimal outputF, decimal testValue, decimal highSpec, string isPass)
        {
            this.productSN = productSN;
            this.testTime = testTime;
            this.topoAlias = topoAlias;
            this.interceptOrder = interceptOrder;
            this.inputPower1 = inputPower1;
            this.inputPower2 = inputPower2;
            this.inputF1 = inputF1;
            this.inputF2 = inputF2;
            this.outputF = outputF;
            this.testValue = testValue;
            this.highSpec = highSpec;
            this.isPass = isPass;
        }

        public string ProductSN { get { return productSN; } set { productSN = value; } }
        public DateTime TestTime { get { return testTime; } set { testTime = value; } }
        public string TopoAlias { get { return topoAlias; } set { topoAlias = value; } }
        public string InterceptOrder { get { return interceptOrder; } set { interceptOrder = value; } }
        public decimal InputPower1 { get { return inputPower1; } set { inputPower1 = value; } }
        public decimal InputPower2 { get { return inputPower2; } set { inputPower2 = value; } }
        public decimal InputF1 { get { return inputF1; } set { inputF1 = value; } }
        public decimal InputF2 { get { return inputF2; } set { inputF2 = value; } }
        public decimal OutputF { get { return outputF; } set { outputF = value; } }
        public decimal TestValue { get { return testValue; } set { testValue = value; } }
        public decimal HighSpec { get { return highSpec; } set { highSpec = value; } }
        public string IsPass { get { return isPass; } set { isPass = value; } }
        public bool IsCurrent { get; set; }
        public string Origin_of_Data { get { return IsCurrent ? "当前测试" : "继承数据"; } }
    }
}
